﻿using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace WCF.Practice.CustomerHost.Service
{
    [ServiceContract]
    public interface IUserService
    {
        [OperationContract]
       // [FaultContract(typeof(ArgumentOutOfRangeException))]
        string GetName(string originalName);
        [OperationContract]
        User GetUser();
    }

    [DataContract]
    public class User
    {
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public int Age { get; set; }
        [DataMember]
        public string Email { get; set; }
    }
}
